package com.nebula.salary.common.constants;

/**
 * 公共返回消息类
 *
 * @author codex
 * @since 2022-01-31
 */
public class ReturnMessage {
    
    public static final String USERNAME_CAN_NOT_BE_EMPTY = "用户名不能为空";
    
    public static final String USERNAME_IS_EXIST = "用户名已存在";
    
    public static final String USERNAME_ALLOWED_TO_USE = "用户名允许使用";
    
    public static final String ILLEGAL_USERNAME = "用户名须以字母开头，字母数字下划线组合，长度4-16";
    
    public static final String ILLEGAL_PHONE = "请输入正确的手机号码";
    
    public static final String PASSWORD_CAN_NOT_BE_EMPTY = "密码不能为空";
    
    public static final String ILLEGAL_PASSWORD = "密码长度在" + Const.PASSWORD_MIN_LENGTH + "-" + Const.PASSWORD_MAX_LENGTH + "个字符";
    
    public static final String USERNAME_OR_PASSWORD_ERROR = "用户名或密码错误";
    
    public static final String NAME_CAN_NOT_BE_EMPTY = "姓名不能为空";
    
    public static final String REGISTER_SUCCESS = "注册成功";
    
    public static final String REGISTER_ERROR = "注册失败";
    
    public static final String LOGIN_SUCCESS = "登录成功";
    
    public static final String LOGOUT_SUCCESS = "退出成功";
    
    public static final String ILLEGAL_REQUEST = "非法请求";
    
    public static final String INSERT_SUCCESS = "新增成功";
    public static final String INSERT_ERROR = "新增失败";
    
    public static final String DELETE_SUCCESS = "删除成功";
    public static final String DELETE_ERROR = "删除失败";
    
    public static final String UPDATE_SUCCESS = "更新成功";
    public static final String UPDATE_ERROR = "更新失败";
    
    /**
     * 当前年份已有12个月的工资记录，无法继续添加
     */
    public static final String CURRENT_YEAR_SALARY_COUNT_MAX_ERROR = "当前年份已有12个月的工资记录，拒绝操作";
    
    /**
     * 当前月份已有工资记录，无法继续添加
     */
    public static final String CURRENT_MONTH_SALARY_COUNT_MAX_ERROR = "当前月份已有工资记录，拒绝操作";
    
    public static final String ROLE_NAME_CAN_NOT_BE_EMPTY = "角色名称不能为空";
    public static final String ROLE_LEVEL_CAN_NOT_BE_EMPTY = "权限等级不能为空";
    public static final String ROLE_LEVEL_ERROR = "权限等级错误，范围1~5";
    public static final String ROLE_SECURITY_CAN_NOT_BE_EMPTY = "权限字符不能为空";
    
    public static final String ILLEGAL_AGE = "年龄范围在" + Const.MIN_AGE + "~" + Const.MAX_AGE;
}
